package com.qly.wapsite.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by Andy ye on 2018/8/3.
 */
@RestController
@RequestMapping(value = "/tml")
public class TmlController {

    @RequestMapping(value = "/index")
    public ModelAndView indexPage(ModelAndView model) {
        model.setViewName("/tml/index");
        model.addObject("name", "yeqing");
        return model;
    }
}
